package com.qys.livesMall.system.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author caoz
 * @since 2023-04-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("h2_exchange_rate")
@Schema(name = "H2ExchangeRate对象", description = "")
public class H2ExchangeRate implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "货币名称")
    @TableField("currency_name")
    private String currencyName;

    @Schema(description = "国家")
    @TableField("country")
    private String country;

    @Schema(description = "汇率")
    @TableField("exchange_rate")
    private String exchangeRate;

    @Schema(description = "符号")
    @TableField("symbol")
    private String symbol;

    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;


}
